import request from '@/utils/request'

// 学校信息列表查询
export function schoollist(data) {
  return request({
    url: '/school/manage/list/school',
    method: 'post',
    data
  })
}

// 新增费率
export function addrate(data) {
  return request({
    url: '/school/manage/add/rate',
    method: 'post',
    data
  })
}

// 新增学校信息
export function addschool(data) {
  return request({
    url: '/school/manage/add/school',
    method: 'post',
    data
  })
}

// 删除学校信息
export function deleteschool(data) {
  return request({
    url: '/school/manage/delete/school',
    method: 'post',
    data
  })
}

// 查询费率详情
export function managegetRateById(data) {
  return request({
    url: '/school/manage/getRateById',
    method: 'post',
    data
  })
}

// 查询费率信息列表
export function listrate(data) {
  return request({
    url: '/school/manage/list/rate',
    method: 'get',
    data
  })
}

// 学校信息详情
export function managegetSchoolById(data) {
  return request({
    url: '/school/manage/getSchoolById',
    method: 'post',
    data
  })
}

// 修改/删除费率信息
export function modifyrate(data) {
  return request({
    url: '/school/manage/modify/rate',
    method: 'put',
    data
  })
}

// 修改学校信息
export function modifyschool(data) {
  return request({
    url: '/school/manage/modify/school',
    method: 'put',
    data
  })
}

